#ifndef SYSTEMCONTROLLER_H
#define SYSTEMCONTROLLER_H
#include <QString>
#include <QStringList>
#include <QSettings>
#include <QMessageBox>
#include <QDialog>

#include "storage/sql/sqllite.h"

using namespace std;
/*!
\class Athlete
Class for Managing all SystemSettings
*/


class SystemController
{
private:
    QString databasePath;
    SqlLite *sqlLitedatabaseManager;
    QSettings *settings;
    QString language;


public:
    SystemController();
    ~SystemController();

    QString checkDatabase();
    void showErrorDialog(QWidget *parent, QString title, QString text, QString error="");

    //Setter functions
    void setDatabsePath(QString path);
    void addRecentlyUsedDbs(QString path);
    void setLanguage(QString countryCode);

    //Getter functions
    QString getDatabasePath();
    QStringList getRecentlyUsedDbs();
    QString getLanguage();
    QSettings *getSettings();

    //Translator functions
    static QString tranlsateGender(bool male);

};



#endif // SYSTEMCONTROLLER_H
